package cn.yotta.user.api.feign.impl;

import cn.yotta.common.api.model.Response;
import cn.yotta.user.api.params.user.UserFindByTokenRequest;
import cn.yotta.user.api.user.UserReadApi;
import cn.yotta.user.api.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author w_etw
 * @date 2023/4/1 11:14
 */
@FeignClient(name = "${yotta.user.api.feign.service-name}",contextId = "userReadFeignApi")
public interface UserReadFeignApi extends UserReadApi {

    @Override
    @GetMapping("/user/common/login/token")
    Response<UserVo> findByToken(@SpringQueryMap UserFindByTokenRequest request);
}
